﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace SprintTrelloAutomater
{
    /// <summary>
    /// Interaction logic for AuthForm.xaml
    /// </summary>
    public partial class AuthForm : Window
    {
        public AuthForm(Uri authorizationURL)
        {
            InitializeComponent();

            txtInstructions.Text = "Use the web page below to authorize the app in Trello.  " +
                                   "After authorizing, you will recieve an authorization token.  " +
                                   "Paste that value in the corresponding field on the main page.";

            webBrowser.Navigate(authorizationURL);
            //webBrowser.Navigate(trello.GetAuthorizationUrl(versionString, Scope.ReadWrite));
        }
    }
}
